<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="theme-color">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>分享家</title>
    <link rel="stylesheet" type="text/css" href="../lib/css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/css/mui.css"/>
    <link rel="stylesheet" href="../css/util.css">
    <script src="http://at.alicdn.com/t/font_371407_7omis3wrfr7tx1or.js"></script>
</head>
<link rel="stylesheet" href="../css/comment_list.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">评论列表</h1>
</header>
<main id="main">
    <section class="house-comment" v-for="comment of list" v-cloak @click="showCommentDetail(comment.id)">
        <div class="row">
            <div class="star">
                <svg class="icon" v-for="(v,i) of 5">
                    <use v-if="i < comment.star" style="color: orange" xlink:href="#icon-star"></use>
                    <use v-else xlink:href="#icon-star-o"></use>
                </svg>
            </div>

        </div>

        <div class="user-info">
            <img :src="comment.img" alt="">
            <div>
                <div class="username">{{comment.userName}}</div>
                <p>发表于{{comment.date}}</p>
            </div>
        </div>

        <div class="user-comment">
            {{comment.content}}
        </div>
    </section>

</main>

<script type="text/javascript" src="../lib/js/babel-polyfill.js"></script>
<script type="text/javascript" src="../lib/js/vue.js"></script>
<script type="text/javascript" src="../lib/js/mui.js"></script>
<script type="text/javascript" src="../lib/js/jquery.js"></script>
<script type="text/javascript" src="../script/util.js"></script>

<script src="../script/comment_list.js"></script>
</body>
</html>